﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpDbCommonEdit.h"
#include "IElementOffsetStrategy.h"

namespace gcmp
{
    class IElement;
    class IPolyCurve;
}

namespace gcmp
{
    /// \brief 多段线对象偏移组件的接口。
    class GCMP_DB_COMMON_EDIT_EXPORT IElementOffsetPolyCurveStrategy : public IElementOffsetStrategy
    {
        DEFINE_CAST_DERIVED(gcmp::IElementOffsetPolyCurveStrategy, gcmp::IElementOffsetStrategy);

    public:

        /// \brief 析构函数
        virtual ~IElementOffsetPolyCurveStrategy() = default;

        /// \brief 设置对象偏移操作后的基准曲线。
        /// 
        /// \param pElement 当前对象元素
        /// \param pPolyCurve 偏移后的基准曲线。
        /// \return 设置成功则返回true；否则返回false。
        virtual bool SetOffsetBaseCurve(IElement* pElement, OwnerPtr<IPolyCurve> opPolyCurve) = 0;
    };

}// namespace gcmp


